<?php
/*
	插件初始化
*/
namespace jy_aikefu;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->setting=$plugin->plugin_setting('basic');
	$plugin->setting['aititle']=$plugin->setting['aititle']?:'机器人客服';
	$plugin->tcp_status=array(
		'0'=>'未发起',
		'1'=>'待处理',
		'2'=>'处理中',
		'3'=>'已结束',
		'4'=>'已取消',
		'5'=>'申请退款',
		'6'=>'已退款',
		'7'=>'拒绝退款',
	);
	$plugin->apis=array('文心chat','图灵机器人');
	$plugin->da_type=array('私有词库','公有词库','文心chat','图灵机器人','人工');
	$plugin->fee_type=array(1=>'免费',2=>'按对话付费',3=>'按每句付费');
	$plugin->fee_type2=array(0=>'默认统一设置',1=>'免费',2=>'按对话付费',3=>'按每句付费');
	$plugin->datatypes=array(
		'head'=>'头像',
		'nickname'=>'昵称',
		'qr'=>'二维码',
		'img'=>'图片',
		'title'=>'标题',
		'desc'=>'描述',
		'text'=>'自定义文字',
	);
	$plugin->datapushs=array(
		'head'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'head',
						'width' => '80',
						'height' => '80',
		),
		'qr'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'qr',
						'width' => '80',
						'height' => '80',
		),
		'nickname'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'nickname',
						'width' => '120',
						'height' => '26',
		),
		'img'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'img',
						'width' => '200',
						'height' => '200',
		),
		'title'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '226',
						'height' => '50',
		),
		'thumb'=>array(
						'left' => '0',
						'top' => '0',
						'type' => 'thumb',
						'width' => '316',
						'height' => '316',
		),
		'text'=>array(
						'left' => '10',
						'top' => '10',
						'type' => 'text',
						'width' => '260',
						'height' => '26',
						'value' => '自定义文字',
		),
	);
	$plugin->goodsdatademo=array(
		array(
						'left' => '250',
						'top' => '80',
						'type' => 'qr',
						'width' => '60',
						'height' => '60',
		),
		array(
						'left' => '116',
						'top' => '125',
						'type' => 'text',
						'width' => '100',
						'height' => '25',
						'size' => '9',
						'value' => '扫码咨询',
						'color'=>'#ddd',
		),
		array(
						'left' => '10',
						'top' => '10',
						'type' => 'title',
						'width' => '300',
						'height' => '25',
						'size' => '14',
						'bold'=>1,
						'value' => '客服名称',
						'color'=>'#f2f2f2',
		),
		array(
						'left' => '10',
						'top' => '30',
						'type' => 'desc',
						'width' => '300',
						'height' => '65',
						'size' => '12',
						'value' => '客服的描述：感谢您的支持，有任何问题，都可以直接咨询我！',
						'color'=>'#f2f2f2',
		),
	);
}